<?php
require_once 'models/models_mathang.php';
require_once 'models/models_loaihang.php';
require_once 'models/models_chungloai.php';
$obcl=new models_chungloai();
$obmh = new models_mathang();
$oblh=new models_loaihang();
$cl=$obcl->listchungloainam();
$cln=$obcl->listchungloainu();
$clte=$obcl->listchungloaite();
$data['listmh']=$obmh->listMatHang();
switch (@$_GET['mod'])
{
	case 'sanphamnam':{
		$cl=$obcl->listchungloainam();
		$data['listmh']=$obmh->listMatHang();	
		require 'views/main/sanphamnam/sanphamnam.php';
		break;
	}
	case 'sanphamnu':{
		$cln=$obcl->listchungloainu();
		$data['listmh']=$obmh->listMatHang();	
		require 'views/main/sanphamnu/sanphamnu.php';
		break;
	}
	case 'sanphamtreem':{
		$cln=$obcl->listchungloaite();
		$data['listmh']=$obmh->listMatHang();	
		require 'views/main/sanphamnu/sanphamnu.php';
		break;
	}
}
	

		
		
	